
var mongoose  = require('mongoose');
var BaseModel = require("./base_model");
var Schema    = mongoose.Schema;

var TaskSchema = new Schema({
    task_des:{type:String},
    task_type:{type:String},
    task_name:{type:String},
    creator:{type:String},
    state:{type:String},
    create_at: { type: Date, default: Date.now },
    update_at: { type: Date, default: Date.now }
});

TaskSchema.plugin(BaseModel);

module.exports = mongoose.model('Task', TaskSchema);
